/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrgs.inf.prav.interop.metadata.lom;

/**
 *
 * @author Fernando
 */
public class LangString {

    private String string, languageAtt;

    public LangString(){
        
    }

    public LangString(String string) {
        this.string = string;
    }
    public LangString(String string, String languageAtt) {
        this.string = string;
        this.languageAtt = languageAtt;
    }

    public String toXML(String tab) {
        StringBuffer sb = new StringBuffer();

        sb.append(tab + "<string");
        if (languageAtt != null)
            sb.append(" language=\"" + languageAtt + "\"" );

        sb.append(">" + string + "</string>\n");

        return sb.toString();
    }


    // <editor-fold defaultstate="collapsed" desc="Getters and Setters">
    public String getLanguageAtt() {
        return languageAtt;
    }

    public void setLanguageAtt(String languageAtt) {
        this.languageAtt = languageAtt;
    }

    public String getString() {
        return string;
    }

    public void setString(String string) {
        this.string = string;
    }
    // </editor-fold>

}
